package com.recycle.dao;

import com.recycle.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);
    UserInfo selectOpenIdUser(String openId);
    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);
    int updateByOpenIdUser(@Param("loginTime") Date loginTime, @Param("openId") String openId);
    int updateByPrimaryKey(UserInfo record);
}